home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
201-225
/
222
/
memgauge
/
gaugemenu.c
next >
Wrap
C/C++ Source or Header
|
1995-03-13
|
5KB
|
82 lines
/* GaugeMenu.c **************************************************************
*
* GaugeMenu ----- External definitions for menu and auto-request.
* These structures were generated using a
* PowerWindows-like program called R.C.T.
*
****************************************************************************/
#include <intuition/intuition.h>
/* Default font for all following text definitions. */
struct TextAttr GaugeFont[3] =
{
{(UBYTE *)"topaz.font",8,FS_NORMAL ,FPF_ROMFONT},
{(UBYTE *)"topaz.font",8,FSF_BOLD ,FPF_ROMFONT},
{(UBYTE *)"topaz.font",8,FSF_ITALIC,FPF_ROMFONT}
};
/* Textdefinitions for the AutoRequest (BodyText). */
struct IntuiText AboutTxt[7] =
{
{3,1,JAM1,8, 4,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"MemGauge v1.4", (struct IntuiText *)&AboutTxt[ 1]},
{2,1,JAM1,8,14,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Was inspired by a similar", (struct IntuiText *)&AboutTxt[ 2]},
{2,1,JAM1,8,22,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"program by Peter da Silva.", (struct IntuiText *)&AboutTxt[ 3]},
{2,1,JAM1,8,30,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"This version was reprogrammed", (struct IntuiText *)&AboutTxt[ 4]},
{2,1,JAM1,8,38,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"by Olaf 'Olsen' Barthel.", (struct IntuiText *)&AboutTxt[ 5]},
{0,1,JAM1,8,50,(struct TextAttr *)&GaugeFont[2],(UBYTE *)"(C) Copyright 1989 by...", (struct IntuiText *)&AboutTxt[ 6]},
{0,1,JAM1,8,58,(struct TextAttr *)&GaugeFont[2],(UBYTE *)"ED Electronic Design Hannover", (struct IntuiText *)NULL},
};
/* Textdefinitions for the Autorequest (NegativeText). */
struct IntuiText Proceed =
{
2,1,JAM1,5,3,
(struct TextAttr *)&GaugeFont[0],
(UBYTE *)"Understood",
(struct IntuiText *)NULL
};
/* Textdefinitions for each single menu entry. */
struct IntuiText GaugeTxt[11] =
{
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"About MemGauge... ",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Window to front ",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Window to back ",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"Close window ",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[1],(UBYTE *)"------------------------",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 1 Second update ",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 2 Seconds update ",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)" 5 Seconds update ",(struct IntuiText *)NULL},
{2,0,0,0,0,(struct TextAttr *)&GaugeFont[0],(UBYTE *)"10 Seconds update ",(struct IntuiText *)NULL}
};
/* Substructures for the real menu. */
struct MenuItem GaugeItem[11] =
{
{(struct MenuItem *)&GaugeItem[ 1], 1, 1, 192, 8, 86, 0, (APTR)&GaugeTxt[ 0], (LONG)0, 65, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[ 2], 0, 10, 192, 8, 210, 0, (APTR)&GaugeTxt[ 1], (LONG)0, 0, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[ 3], 1, 18, 192, 8, 86, 0, (APTR)&GaugeTxt[ 2], (LONG)0, 70, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[ 4], 0, 27, 192, 8, 86, 0, (APTR)&GaugeTxt[ 3], (LONG)0, 66, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[ 5], 0, 36, 192, 8, 210, 0, (APTR)&GaugeTxt[ 4], (LONG)0, 0, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[ 6], 0, 44, 192, 8, 86, 0, (APTR)&GaugeTxt[ 5], (LONG)0, 67, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[ 7], 0, 53, 192, 8, 210, 0, (APTR)&GaugeTxt[ 6], (LONG)0, 0, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[ 8], 0, 61, 192, 8, 86, 0, (APTR)&GaugeTxt[ 7], (LONG)0, 49, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[ 9], 0, 70, 192, 8, 86, 0, (APTR)&GaugeTxt[ 8], (LONG)0, 50, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)&GaugeItem[10], 0, 79, 192, 8, 86, 0, (APTR)&GaugeTxt[ 9], (LONG)0, 53, (struct MenuItem *)NULL, 65535},
{(struct MenuItem *)NULL, 0, 88, 192, 8, 86, 0, (APTR)&GaugeTxt[10], (LONG)0, 48, (struct MenuItem *)NULL, 65535}
};
/* This will be the menu. */
struct Menu GaugeMenu = {(struct Menu *)NULL, 0, 0, 112, 0, 257, "MemGauge v1.4", (struct MenuItem *)&GaugeItem[0]};